package model

import (
	"time"
)

type AuCarOwner struct {
	OwnerId             int       `xorm:"not null pk autoincr INT(10)"`
	Uid                 int       `xorm:"not null default 0 index INT(10)"`
	ServiceId           int       `xorm:"not null default 0 index INT(10)"`
	CheckerId           int       `xorm:"not null default 0 index INT(10)"`
	DeliverId           int       `xorm:"not null INT(10)"`
	SellerName          string    `xorm:"not null VARCHAR(30)"`
	Phone               string    `xorm:"not null index VARCHAR(11)"`
	CarModel            string    `xorm:"not null VARCHAR(100)"`
	BrandId             int       `xorm:"not null INT(10)"`
	SeriesId            int       `xorm:"not null INT(10)"`
	ModelId             int       `xorm:"not null INT(10)"`
	BusinessStatus      int       `xorm:"not null default 1 SMALLINT(3)"`
	Mileage             string    `xorm:"not null default '0' VARCHAR(20)"`
	FirstRegDate        time.Time `xorm:"not null default '0000-00-00' DATE"`
	Status              int       `xorm:"not null default 0 SMALLINT(3)"`
	Comefrom            int       `xorm:"not null default -1 INT(10)"`
	ComefromUrl         string    `xorm:"VARCHAR(255)"`
	LocationArea        int       `xorm:"not null INT(10)"`
	FirstRegCity        int       `xorm:"not null default 0 INT(10)"`
	ServiceMethod       int       `xorm:"not null default 1 SMALLINT(3)"`
	CertificateType     int       `xorm:"not null default 0 SMALLINT(3)"`
	CertificateNumber   string    `xorm:"not null default '' VARCHAR(100)"`
	Province            int       `xorm:"not null default 0 INT(10)"`
	City                int       `xorm:"not null default 0 INT(10)"`
	Area                int       `xorm:"not null default 0 INT(10)"`
	Address             string    `xorm:"not null default '' VARCHAR(200)"`
	NextTraceTime       time.Time `xorm:"not null default '0000-00-00 00:00:00' DATETIME"`
	TraceType           int       `xorm:"not null default 0 TINYINT(1)"`
	ReserveTime         time.Time `xorm:"not null default '0000-00-00 00:00:00' DATETIME"`
	ReserveStore        int       `xorm:"not null INT(10)"`
	ReserveRemark       string    `xorm:"TEXT"`
	ReserveArea         int       `xorm:"not null default 0 INT(10)"`
	ReserveCity         int       `xorm:"not null default 0 INT(10)"`
	ReserveProvince     int       `xorm:"not null default 0 INT(10)"`
	ReserveAddress      string    `xorm:"not null default '' VARCHAR(200)"`
	IsAssigned          int       `xorm:"not null TINYINT(1)"`
	AssginRemark        string    `xorm:"TEXT"`
	CheckerName         string    `xorm:"not null default '' VARCHAR(30)"`
	CheckDate           time.Time `xorm:"not null default '0000-00-00 00:00:00' DATETIME"`
	CheckFailDate       time.Time `xorm:"not null DATETIME"`
	SignNextTraceTime   time.Time `xorm:"not null default '0000-00-00 00:00:00' DATETIME"`
	SignServiceMethod   int       `xorm:"not null default 0 SMALLINT(3)"`
	SignReserveTime     time.Time `xorm:"not null default '0000-00-00 00:00:00' DATETIME"`
	SignReserveRemark   string    `xorm:"TEXT"`
	SignReserveArea     int       `xorm:"not null default 0 INT(10)"`
	SignReserveCity     int       `xorm:"not null default 0 INT(10)"`
	SignReserveProvince int       `xorm:"not null default 0 INT(10)"`
	SignReserveAddress  string    `xorm:"not null default '' VARCHAR(200)"`
	SignReserveStore    int       `xorm:"not null default 0 INT(11)"`
	SignAssginRemark    string    `xorm:"TEXT"`
	SignDeliverName     string    `xorm:"not null default '' VARCHAR(30)"`
	SignCheckResult     string    `xorm:"TEXT"`
	SignDate            time.Time `xorm:"not null default '0000-00-00 00:00:00' DATETIME"`
	AuditRemark         string    `xorm:"TEXT"`
	ModifyTime          time.Time `xorm:"not null default '0000-00-00 00:00:00' DATETIME"`
	Posttime            time.Time `xorm:"not null default '0000-00-00 00:00:00' DATETIME"`
	IsAccountSend       int       `xorm:"not null default 0 TINYINT(1)"`
	IsouId              int       `xorm:"not null default 0 index INT(11)"`
	IsSelfUpload        int       `xorm:"not null TINYINT(1)"`
	RemarkFail          string    `xorm:"TEXT"`
	DelayStatus         int       `xorm:"default 0 SMALLINT(3)"`
	CheckFailType       int       `xorm:"default 0 TINYINT(1)"`
	ReserveReminder     string    `xorm:"VARCHAR(255)"`
	OwnerType           int       `xorm:"not null default 1 TINYINT(1)"`
	ContactPerson       string    `xorm:"VARCHAR(30)"`
	OldCarId            int       `xorm:"not null INT(11)"`
}
